package com.amit.hibernate1;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

public class CHibernateUtil {
	
	static SessionFactory sessionfactory ;

	public static SessionFactory getfactory() {

		Configuration cfg=new Configuration();
		cfg=cfg.configure();
		sessionfactory=cfg.buildSessionFactory();
		
		return sessionfactory;
	}

}
